extends "../cTDZ_2/cTDZ_2.gd"
func _info():
	pass

func _connect():
	._connect()

func _extInit():
	._extInit()
	chaName = "骷髅战士"
	lv = 2
	attCoe.atk = 21 / 8.5 * 2 / 2
	attCoe.maxHp = 770 / 112.5 / 2
	attCoe.def = 20 / 15.0 / 2
	attCoe.mgiDef = 20 / 16.6 / 2 
	addSkillTxt("精良装备：免疫<流血><毒><中毒><毒种><火种><冰种>；普攻22%使敌方失明[1层]")
	if !is_connected("onAddBuff",self,"run"):
		connect("onAddBuff",self,"run")
var pw = 22
func _onAtkChara(atkinfo):
	if !atkinfo.isMiss && atkinfo.atkType == Chara.AtkType.NORMAL && atkinfo.hitCha != self:
		if sys.rndPer(pw):
			atkinfo.hitCha.addBuff(b_shiMing.new(1))
	._onAtkChara(atkinfo)

func run(buff):
	if buff.id == "b_liuXue" || buff.id == "b_d" || buff.id == "b_zhonDu" || buff.id == "b_bingzhong" || buff.id == "b_huozhong" ||buff.id == "b_duzhong":
		buff.isDel = true
	

